﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<title>蓝点官网注册</title>
		<meta charset="UTF-8"/>
		<link rel="stylesheet" type="text/css" href='<c:url value="/jsps/user/css/reg.css"></c:url>'/>
	</head>
	
	
	<body>
	
		<h1><a href="<c:url value='/ArticleServlet1?method=findAll'/>">蓝点官网</a>注册</h1>
		<p style="color: red; font-weight: 900">${msg }</p>
	<form action="<c:url value='/UserServlet'/>" method="post">
		<!-- 调用StuServlet中的regist方法 --> 
		<input type="hidden" name="method" value="regist" />
		<c:forEach items="${applicationScope.map }" var="entry">
			<input type="hidden" name="ip" value="${entry.key }">
		</c:forEach>
		<input type="hidden" name="ip" value="${applicationScope.map }">
		昵称：<input type="text" name="username" value="${form.username }" /> 
			<span style="color: red; font-weight: 900">${errors.username }</span> 
			<br /><br />
		密码：<input type="password" name="password" value="${form.password }" /> <span
			style="color: red; font-weight: 900">${errors.password }</span> <br /><br />
		邮箱：<input type="text" name="email" value="${form.email }" /> <span
			style="color: red; font-weight: 900">${errors.email }</span> <br /><br />
		&nbsp;&nbsp;
				<input type="submit" class="submit" id="submit" value="注册"/><br />
		&nbsp;&nbsp;		<a href='<c:url value="/jsps/user/log.jsp"></c:url>'><input type="button" class="hava" id="hava" value="已有账号?"/></a>
				<a href=""><input type="button" class="forget" id="forget" value="忘记密码?"/></a>
		</form>
	</body>
</html>